-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing map shapes in summary step #791
base: main
Are you sure you want to change the base?
Conversation
Because the geoJsonGeometry is available before the featureGroupRef is set, can the useEffect hook not draw the map shapes
Bundle ReportChanges will decrease total bundle size by 20 bytes (-0.0%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: @open-formulieren/sdk-OpenForms-umdAssets Changed:
Files in
view changes for bundle: @open-formulieren/sdk-esmAssets Changed:
Files in
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #791 +/- ##
==========================================
+ Coverage 83.67% 83.68% +0.01%
==========================================
Files 244 244
Lines 4777 4780 +3
Branches 1268 1269 +1
==========================================
+ Hits 3997 4000 +3
Misses 747 747
Partials 33 33
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
}, | ||
// `featureGroupRef.current` is needed as dependency to make sure that | ||
// the featureGroupRef can be used. | ||
[geoJsonGeometry, featureGroupRef.current] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check these linter warnings?
Part of open-formulieren/open-forms#5038
Because the geoJsonGeometry is available before the featureGroupRef is set, can the useEffect hook not draw the map shapes.
This fix makes sure that featureGroupRef is set, so that map shapes can be drawn